﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCCommon.Enums;

namespace BCDto.Website.UserAuth
{
    /// <summary>
    /// 信息
    /// </summary>
    public class UserAuthRequestDto
    {
        /// <summary>
        /// 用户ID
        /// </summary>		
        [Display(Name = "用户ID")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public long UserId { get; set; }
        /// <summary>
        /// 授权类型
        /// </summary>		
        [Display(Name = "授权类型")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public AuthType AuthType { get; set; }
        /// <summary>
        /// 开放平台用户唯一标识
        /// </summary>		
        [Display(Name = "开放平台用户唯一标识")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string UnionId { get; set; }
        /// <summary>
        /// 认证信息
        /// </summary>		
        [Display(Name = "认证信息")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(1000, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string AuthInfo { get; set; }
    }
}

